﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class MachineStateChangedMessage : BaseTibcoMessage<MachineStateChangedMessageBody>
    {
        public MachineStateChangedMessage()
        {

        }
        public MachineStateChangedMessage(MachineStateChangedMessageBody body, string inboxName = "", string listener = "") : base("MachineStateChanged", body, inboxName, listener)
        {
        }
    }


    public class MachineStateChangedMessageBody : MachineEventBase
    {
        public MachineStateChangedMessageBody()
        {
        }

        public MachineStateChangedMessageBody(string machineName, string machineState)
        {
            MachineName = machineName;
            MachineState = machineState;
            EventUser = machineName;
        }

        [XmlElement("MACHINESTATE")]
        public string MachineState { get; set; }

    }
}




